
//
//  DetailDayModal.m
//  Daybook
//
//  Created by dllo on 16/5/25.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "DetailDayModal.h"

@implementation DetailDayModal

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"count"]) {
        NSDictionary *countDic = value;
        self.cellType = [countDic valueForKey:@"type"];
        NSArray *tempArr = [countDic valueForKey:@"countMoney"];
        if (tempArr.count == 1) {
            NSDictionary *titleDic = tempArr[0];
            self.cellTitle = [titleDic valueForKey:@"title"];
        }else {
            NSDictionary *titleDic = tempArr[0];
            NSDictionary *remarksDic = tempArr[1];
            self.cellTitle = [titleDic valueForKey:@"title"];
            self.cellRemarks = [remarksDic valueForKey:@"remarks"];
        }
    }
}




@end
